package com.dr.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dr.entity.Shopcart;

public interface ShopcartMapper {
	/**
	 * 跳转我的购物车
	 * @param page页码
	 * @param limit条数
	 * @param map集合
	 * @return查询的数据
	 */
	public List<Shopcart> findShopcarts(@Param("id") Integer id);
	/**
	 * 删除购物车
	 */
	public int deleteShopcart(@Param("ids")String ids);
	/**
	 * 加减
	 * @param id
	 * @param option
	 * @return
	 */
	public int updateCount(@Param("id")Integer id,@Param("option")String option);
	public Shopcart findISSamePro(@Param("pid")Integer pid,@Param("uid")Integer uid,@Param("size")String size);
	//修改
	public int addShopcartByUpdateCount(@Param("id")Integer id,@Param("count")Integer count);
	/**
	 * 
	 * @param shopcart
	 * @return
	 */
	public int addShopcart(Shopcart shopcart);
}
